﻿using MimeKit;
using System;
using System.Collections.Generic;
using System.Text;

namespace EmailHelper.Model
{
    /// <summary>
    /// 邮件信息
    /// </summary>
    public class EmailInfo
    {
        /// <summary>
        /// 发件人
        /// </summary>
        public Contact From { get; set; }
             
        /// <summary>
        /// 收件人
        /// </summary>
        public List<Contact> To { get; set; }

        /// <summary>
        /// 抄送人
        /// </summary>
        public List<Contact> CC { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        public string Subject { get; set; }

        public string ReplyTo { get; set; }

        public bool IsHtml { get; set; } = true;

        /// <summary>
        /// 邮件体
        /// </summary>
        public MimeEntity Body { get; set; }

        /// <summary>
        /// 邮件头
        /// </summary>
        public string[] Headers { get; set; }
    }

    /// <summary>
    /// 联系人
    /// </summary>
    public class Contact
    {
        /// <summary>
        /// 昵称
        /// </summary>
        public string Name { get; set; }
        

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
    }
}
